package com.ujoku.dao.impl;

import com.labillusion.core.database.base.mybatis.dao.impl.BaseDaoImpl;
import com.ujoku.dao.MyListDao;
import com.ujoku.dao.MyListItemDao;
import com.ujoku.domain.MyListItem;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by greg.chen on 14-10-22.
 */
@Repository
public class MyListItemDaoImpl extends BaseDaoImpl<MyListItem> implements MyListItemDao<MyListItem> {

    @Override
    public List<MyListItem> selectFriendItemList(Map<String, Object> query) {

        return sqlSessionTemplate.selectList(getSqlName("selectFriendItemList"), query);
    }

    @Override
    public int selectFriendItemCount(Map<String, Object> query) {

        return sqlSessionTemplate.selectOne(getSqlName("selectFriendItemCount"), query);
    }

}
